package com.heima.test;

public class ThreadDemo {
    public static void main(String[] args) {
        ThreadLocal<Integer> threadLocal = new ThreadLocal<Integer>(){
            @Override
            protected Integer initialValue() {
                return 0;
            }
        };
        threadLocal.set(threadLocal.get()+1);//
    }
}
